package net.wangds.persistence.columnoriented.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import net.wangds.data.impl.IdCreateDisable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 字段字典.
 * <p></p>
 *
 * @author 王东石 2020/10/30 16:10.
 */
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Entity
@Table(name="dict_fields")
public class DictFieldEntity extends IdCreateDisable {

    /**
     * 方案名.
     */
    @Getter
    @Setter
    @Column
    private String schema;

    /**
     * 表名.
     */
    @Getter
    @Setter
    @Column
    private String tablename;

    @Getter
    @Setter
    @Column
    private String fieldname;

    @Getter
    @Setter
    @Column
    private String displayname;

    @Getter
    @Setter
    @Column
    private int seq;

    @Getter
    @Setter
    @Column
    private DataTypeEnum dataType;

    @Getter
    @Setter
    @Column
    private ColumnOrientedDataTypeEnum columnOrientedDataType;

}
